package com.user.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;


@Data
@ToString
public class UserVo {

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号", name = "phone")
    private String phone;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", name = "password")
    private String password;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", name = "name")
    private String name;

    @ApiModelProperty(value = "性别", name = "sex")
    private int     sex;

    @ApiModelProperty(value = "身份证件号", name = "number")
    private String number;

    @ApiModelProperty(value = "电子邮箱", name = "email")
    private String email;


}
